package com.daon.service;

import com.daon.common.ServerResponse;
import com.daon.param.SysUserParam;
import com.daon.pojo.SysUser;
import com.daon.vo.SysUserVo;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * @Author 1daon
 * @EMAIL 532418116@qq.com
 * @Version 创建时间：2019/1/13 6:35 PM
 * @Modified By
 */
public interface ISysUserService {

    ServerResponse login(HttpServletRequest request, HttpServletResponse response, HttpSession session);

    void updateCurrentUserIp(SysUser user, String ip);

    PageInfo getUserListByKeyword(int pageNum, int pageSize, String searchUser);

    ServerResponse checkMobile(String mobile);

    ServerResponse<SysUser> save(SysUserParam sysUserParam);

    ServerResponse updateDeleteSysUserById(int id);

    ServerResponse updateStatusSysUserById(int id);

    ServerResponse update(SysUserParam sysUserParam);

    SysUser getSysUserById(int userId);

    SysUserVo detail(int userId);
}
